//
//  DLRiskEvaluationResultVC.m
//  delongzhitou
//
//  Created by Mr.Wang on 2018/12/13.
//  Copyright © 2018 delongzhitou. All rights reserved.
//

#import "DLRiskEvaluationResultVC.h"

@interface DLRiskEvaluationResultVC ()

@end

@implementation DLRiskEvaluationResultVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpNav];
    [self layoutSubControls];
    // Do any additional setup after loading the view.
}
- (void) layoutSubControls {
    
    UIButton *groupButton = [UIButton buttonWithType:UIButtonTypeCustom];
    groupButton.frame = CGRectMake(25, kScreenSafeAreaHeight - kHeightNavigation - 180, kScreenWidth - 50, 35);
    [groupButton setTitle:@"查看智能组合" forState:UIControlStateNormal];
    [groupButton setTitleColor:kDLBtnNormalBgColor forState:UIControlStateNormal];
    groupButton.titleLabel.font = kSystemFont(15);
    groupButton.backgroundColor = [UIColor whiteColor];
    groupButton.layer.cornerRadius = 3;
    groupButton.clipsToBounds = YES;
    groupButton.layer.borderWidth = 0.5;
    groupButton.layer.borderColor = kDLBtnNormalBgColor.CGColor;
    [self.view addSubview:groupButton];
    [groupButton addTarget:self action:@selector(groupButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
- (void) groupButtonClick {
    NSLog(@"查看智能组合");
}
- (void) setUpNav {
    
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem new];
    
    UIButton *noticeButton = [UIButton buttonWithType:0];
    noticeButton.frame = CGRectMake(0, 0, 40, 30);
    [noticeButton setTitle:@"重新测评" forState:UIControlStateNormal];
    noticeButton.titleLabel.font = kSystemFont(14);
    [noticeButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:noticeButton];
    [noticeButton addTarget:self action:@selector(noticeButtonClick) forControlEvents:UIControlEventTouchUpInside];
}
- (void) noticeButtonClick {
    NSLog(@"重新测评");
    [self.navigationController popViewControllerAnimated:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
